        {include file='header.html'}
        <link type="text/css" href="../../page/css/reset.css" rev="stylesheet" rel="stylesheet">
        <link type="text/css" href="../../page/css/manage.css" rev="stylesheet" rel="stylesheet">
        <script type="text/javascript" src="{$common_domain}/tools/datepicker/jquery-1.7.2.js"></script>
            <div id="content">
                <i class="con_l">&nbsp;</i>
                <i class="con_r">&nbsp;</i>
                <div class="titname">
                    <a href="/"  class="selected">权限管理</a>
                    <a href="/workdayadd/">工作日管理</a>
                </div>
                <div class="main">
                    <div class="blank"></div>

                    <div class="p p1">
                        <div style="margin-top: 10px;margin-left: 2px;">
                            <select name="set_role" id="set_role" >
                                <option value="0">选择角色</option>
                                {foreach from=$role_select key=roleid item=v}
                                    <option value="{$roleid}">{$v.name}</option>
                                {/foreach}
                            </select>
                            <input class="btn" type="button" value="设  置" id="set_button"/>

                            <!-- 设置特殊版别开始 -->
                            <select name="user_type" id="user_type" style="width:90px;">
                            <option value="0" selected="selected">班别设置</option>
                                <option value="99">普通班别</option>
                                {foreach from=$user_type key=user_type_id item=v}
                                    <option value="{$user_type_id}">{$v}</option>
                                {/foreach}
                            </select>
                            <input class="btn" type="button" value="设  置" id="set_button_ts" />
                            <!-- 设置特殊版别结束 -->

                            <form action="" name="search_form" method="post" style="margin:0px;padding:0px;display:inline">
                            <select name="search_city">
                                <option value="0">全部</option>
                                {foreach from=$city_select item=v}
                                <option {if $params.search_city eq $v}selected="selected"{/if} value="{$v}">{$v}</option>
                                {/foreach}
                            </select>
                            <select name="search_role">
                                <option value="0">所有角色</option>
                                {foreach from=$role_select key=roleid item=v}
                                    <option {if $params.search_role eq $roleid}selected="selected"{/if} value="{$roleid}">{$v.name}</option>
                                {/foreach}
                            </select>
                            <input class="txt" name="search_keywords" value="{$params.search_keywords}" type="text" style="width:80px;"/>
                            <input class="btn" type="submit" value="搜  索" />
                            {if $action_success eq "1"}<span style="color:red">*&nbsp;操作成功！</span>{/if}
                            </form>
                        </div>
                    </div>
                    <ul class="p p2">
                        <!-- 第一个li添加fir这个class，最后一个li添加last这个class-->
                        <li class="s fir">
                            <i class="i0 i1"><input type="checkbox" id="allclick"/></i>
                            <i class="i0 i2">员工号码</i>
                            <i class="i0 i3">城市</i>
                            <i class="i0 i4">部门</i>
                            <i class="i0 i5">姓名</i>
                            <i class="i0 i6">入职时间</i>
                            <i class="i0 i7">角色</i>
                            <div class="clear"></div>
                        </li>
                        <form action="" method="post" name="set_form" id="set_form">
                        <input type="text" value="0" id="hidden_set_role" name="set_role" style="display:none"/>
                        <input type="text" value="0" name="action" id="set_action_tag" style="display:none"/>
                        <input type="text" value="0" name="action_user_type" id="set_action_tag_type" style="display:none"/>
                        <input type="text" value="0" id="hidden_user_type" name="user_type" style="display:none"/>
                        {foreach from=$userlist key=userid item=v}
                        <li class="s onhover">
                            <i class="i0 i1"><input type="checkbox" value="{$v.user_id}" name="userlist[]"/></i>
                            <i class="i0 i2">{$v.code}</i>
                            <i class="i0 i3">{$v.city_name}</i>
                            <i class="i0 i4" title="{$v.department_name}">{$v.department_name}</i>
                            <i class="i0 i5">{$v.name}</i>
                            <i class="i0 i6">{$v.enter_date}</i>
                            <i class="i0 i7">{$v.role_name}
                            {if $v.user_type}
                            <a title="{$v.user_type_date}">(特殊班别)</a>
                            {/if}
                            </i>
                            <div class="clear"></div>
                        </li>
                        {/foreach}
                        </form>
                    </ul>
                    <div class="p p3" style="text-align:center" align="center">
                        {include file='multipage.html'}
                    </div>
                </div>
            </div>
            <script language="javascript">
            var userlist = {
                selectAll:function(){
                    $(".s input:checkbox").attr('checked',true);
                },
                unselectAll:function(){
                    $(".s input:checkbox").attr('checked',false);
                }
            };
            $(function () {
                $("#allclick").click(function(){
                    if($(this).attr('checked')) {
                        userlist.selectAll();
                    }else{
                        userlist.unselectAll();
                    }
                });
                $("#set_button").click(function(){
                    $("#set_form").submit();
                });
                $("#set_button_ts").click(function(){
                    $("#set_form").submit();
                });
                $("#set_role").change(function(){
                    $("#hidden_set_role").val($(this).val());
                    $("#hidden_user_type").val($(this).val());
                    $("#set_action_tag").val('set');
                });
                $("#user_type").change(function(){
                    $("#hidden_user_type").val($(this).val());
                    $("#set_action_tag_type").val('set');
                });
            });
            </script>
        {include file='footer.html'}
